package com.itheima.shengchanxiaofei2;
/*
存放共享数据
 */
public class Desk {
    // 状态 有   没有
    private boolean flag=false;
    // 数量  今天卖多少个
    private int count=10;
    // 锁
    private final Object LOCK= new Object();

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Object getLOCK() {
        return LOCK;
    }
}
